package com.pengtu.entity.business;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.entity.IdEntity;
import com.pengtu.entity.project.ProjectInfo;

/**
 * 质量监督申请书
 * @author liuyang
 *
 */
@Entity
@Table(name = "T_Q_CASE_APPL_PETITION")
public class QualityApplication extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private ProjectInfo projectInfo;	//项目名称
	private String orgName;				//申请单位
	private String according;			//依据要求
	private String phone;				//联系电话
	private String mobilePhone;			//手机
	private String adress;				//通讯地址
	private String contact;				//联系人
	private String email;				//电子邮箱
	private String zipCode;				//邮政编码
	private Date applicationDate;		//业务申请时间
	private Date acceptionDate;			//业务受理时间
	private String applicationCode;		//业务申请编号
	private String status;				//业务受理状态
	private String remark;				//备注
	
	private String taskId;				//任务ID，非持久化属性
	
	@ManyToOne(targetEntity=ProjectInfo.class,fetch=FetchType.LAZY)
	@JoinColumn(name="PROJID")
	public ProjectInfo getProjectInfo() {
		return projectInfo;
	}
	public void setProjectInfo(ProjectInfo projectInfo) {
		this.projectInfo = projectInfo;
	}
	
	@Column(name="ORGNAME")
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	
	@Column(name="ACCORDING")
	public String getAccording() {
		return according;
	}
	public void setAccording(String according) {
		this.according = according;
	}
	
	@Column(name="PHONE")
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Column(name="ADRESS")
	public String getAdress() {
		return adress;
	}
	public void setAdress(String adress) {
		this.adress = adress;
	}
	
	@Column(name="CONTACT")
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	
	@Column(name="ZIPCODE")
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	
	@Column(name="APPLICATIONDATE")
	public Date getApplicationDate() {
		return applicationDate;
	}
	public void setApplicationDate(Date applicationDate) {
		this.applicationDate = applicationDate;
	}
	
	@Column(name="ACCEPTIONDATE")
	public Date getAcceptionDate() {
		return acceptionDate;
	}
	public void setAcceptionDate(Date acceptionDate) {
		this.acceptionDate = acceptionDate;
	}
	
	@Column(name="APPLICATIONCODE")
	public String getApplicationCode() {
		return applicationCode;
	}
	public void setApplicationCode(String applicationCode) {
		this.applicationCode = applicationCode;
	}
	
	@Column(name="STATUS")
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Transient
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
	@Column(name="MOBILEPHONE")
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	
	@Column(name="EMAIL")
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
}
